﻿using System;
using EkStudio.com.bean.xml.reflection;
using EkStudio.com.bean.xml.RootInterface;

namespace EkStudio.com.bean.xml.WorkFlow
{
    /// <summary>
    /// 工作流对应模块配置
    /// </summary>
    public class WflowFieldElement:BillObjectInterface
    {

        private string key = "";//审批对象Key
        private string caption = "";//审批对象caption
        private string field = "";//关键字段Key
        private string fieldSource = "";//关键字段数据源
        private string fieldCaption = "";//关键字段caption
        private string status = "";//状态字段Key
        private string statusCaption = "";//状态字段caption
        private string statusSource = "";//状态字段数据源
        private string remark = "";//审批备注字段key
        private string remarkCaption = "";//审批备注字段caption
        private string remarkSouce = "";//审批备注字段数据源


        [Xml]
        public string Key
        {
            get
            {
                return key;
            }

            set
            {
                key = value;
            }
        }
        [Xml]
        public string Caption
        {
            get
            {
                return caption;
            }

            set
            {
                caption = value;
            }
        }
        [Xml]
        public string Field
        {
            get
            {
                return field;
            }

            set
            {
                field = value;
            }
        }
        [Xml]
        public string FieldSource
        {
            get
            {
                return fieldSource;
            }

            set
            {
                fieldSource = value;
            }
        }
        [Xml]
        public string FieldCaption
        {
            get
            {
                return fieldCaption;
            }

            set
            {
                fieldCaption = value;
            }
        }
        [Xml]
        public string Status
        {
            get
            {
                return status;
            }

            set
            {
                status = value;
            }
        }
        [Xml]
        public string StatusCaption
        {
            get
            {
                return statusCaption;
            }

            set
            {
                statusCaption = value;
            }
        }
        [Xml]
        public string StatusSource
        {
            get
            {
                return statusSource;
            }

            set
            {
                statusSource = value;
            }
        }
        [Xml]
        public string Remark
        {
            get
            {
                return remark;
            }

            set
            {
                remark = value;
            }
        }
        [Xml]
        public string RemarkCaption
        {
            get
            {
                return remarkCaption;
            }

            set
            {
                remarkCaption = value;
            }
        }
        [Xml]
        public string RemarkSouce
        {
            get
            {
                return remarkSouce;
            }

            set
            {
                remarkSouce = value;
            }
        }
        [XmlTransient]
        public object ParentBean
        {
            get
            {
                return null;
            }

            set
            {
                
            }
        }

        public object Clone()
        {
            WflowFieldElement clone = new WflowFieldElement();
            clone.Key = key;
            clone.Caption = caption;
            clone.Field = field;
            clone.FieldCaption = fieldCaption;
            clone.Status = status;
            clone.StatusCaption = statusCaption;
            clone.StatusSource = statusSource;
            clone.Remark = remark;
            clone.RemarkCaption = remarkCaption;
            clone.RemarkSouce = remarkSouce;
           
            return clone;
        }


    }
}
